//
//  ONInforViewController.m
//  Volatix
//
//  Created by Familly on 7/2/14.
//  Copyright (c) 2014 Familly. All rights reserved.
//

#import "ONInforViewController.h"

@interface ONInforViewController ()<UIWebViewDelegate>

@end

@implementation ONInforViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSLog(@"%s %@",__FUNCTION__,self.link);
    [MBProgressHUD showHUDAddedTo:self.view animated:YES];
   [_OnInfor loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.link]]];

}
-(void)webViewDidFinishLoad:(UIWebView *)webView
{
     [MBProgressHUD hideAllHUDsForView:self.view animated:YES];
}
-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
{
    [MBProgressHUD hideAllHUDsForView:self.view animated:YES];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
